package com.zjw.core.algorithm;

public class NumberTest {
    public static void main(String[] args) {

        Integer a = 1;
        Integer b = 1;
        Integer c = 128;
        Integer d = 128;
        Integer e = d;
        System.out.println(a == b);
        System.out.println(c == d);
        System.out.println(e == d);

        String x = "123";
        String y = "123";
        System.out.println(x == y);

        String k = new String("123");
        String j = new String("123");
        System.out.println(k == j);

        String key = "zjw";
        int h;
        int i = (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);
        System.out.println(key.hashCode());
        System.out.println(i);
    }
}
